home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
014
/
vdl.arc
/
VDL.DOC
< prev
Wrap
Text File
|
1985-04-13
|
2KB
|
44 lines
VDL.COM - Verify wildcard file deletion
Use: vdl [d:][path]filespec
vdl [d:][path]dir
This program is designed to function like Jeff Garber's VDEL (PC
Tech Journal, vol.1 no.5). It uses DOS 2.00 function calls to enable the
use of paths and sub-directories, however, so it requires DOS 2.00 or
subsequent versions. In addition, it displays the usual directory
information, along with the filename, in the verification prompt.
VDL will be most useful when the filespec on the command line
contains global filename characters (* or ?) or just a directory name.
A list of matching files is presented in directory format, one entry at a
time, each followed by a '?'. The response to this prompt determines
the action taken:
'y' or 'Y' file deleted. search continues
Esc no action on this file, search ends
(any other) no action on this file, search continues
e.g.:
A>vdl c:temp\xxx.* [response]
XXX .ASM #bytes date time ? [' ']
XXX .OBJ #bytes date time ? Deleted. ['y']
XXX .BAK #bytes date time ? Deleted. ['y']
XXX .EXE #bytes date time ? [Esc]
Search ended.
A>
In this version the keyboard buffer is cleared before each response. The
[d:][path], when used, is not echoed in the display. Directory entries
with special attributes will not be found. VDL accepts '\' or '/' as
path separator, '[d:].' as current directory, '[d:]..' as parent
directory, and '[d:]/' or '[d:]\' as root directory. (DOS 2.0 doesn't
like '.' for current directory if it is the root directory.)
Before serious use, try this command out with a bunch of dummy
files to make sure it is working properly and its behavior is understood.
Tom Roberts
3/23/84